package org.mycompany.web.controller;

import java.util.Map;

import org.mycompany.datatable.Datatable;
import org.mycompany.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.mycompany.model.User;

@Component
@Scope("session")
public class LoginController extends Datatable<User> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6246290280840443588L;

	@Autowired
	private UserService userService;

	private String helloWorld = "hello world";

	public String getHelloWorld() {
		userService.create(new User());
		return helloWorld;
	}

	public void setHelloWorld(String helloWorld) {
		this.helloWorld = helloWorld;
	}

	public Map<String, String> resolve(String clazz) {
		System.out.println(clazz);
		return null;
	}
}